import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import i18n from './locales'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import './permission'

import './styles/index.scss'
import 'element-plus/dist/index.css'

// import './mock'

const app = createApp(App)
const pinia = createPinia()

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(pinia).use(router).use(i18n).mount('#app')
